Momentic home page
Search...
⌘K
AI steps
AI action (beta)
AI check
AI extract
Primitive steps
Element check
Page check
Click
Type
Press
Key down
Key up
Hover
Scroll
Drag and drop
Select
Cookie
Wait
Wait for URL
Local storage
File upload
Switch tab
New tab
Navigate
Refresh
Copy
Paste
Set header
Register request listener
Await listener
Record requests
Get recorded requests
Mock route
Remove mock route
Advanced steps
JavaScript
Visual diff
Save auth state
Load auth state
Book a demo
Support
Log in
Momentic home page
Search...
⌘K
Book a demo
Support
Log in
Log in
Search...
Navigation
Primitive steps
Set header
Documentation
Steps
Changelog
Documentation
Steps
Changelog
Primitive steps
Set header
Copy page
Adds a custom header to later requests
Copy page
You should use this step before the request is initiated. If you need to add a custom header to the initial page load, you can use this step followed by either a
navigate
step or a
refresh
step.
Inputs
Name
string
required
The name of the header. This should be a valid HTTP header name.
Value
string
required
The value of the header. This can be any string value.
URL Matcher
object
Show child attributes
Substring
Glob
Regex
Domain
url
string
required
The substring to look for
HTTP Method
POST | GET | DELETE | PUT | PATCH | OPTIONS
Only match requests that have this HTTP Method
Was this page helpful?
Yes
No
Previous
Register request listener
Register a listener for requests that match a specific URL pattern
Next
On this page
Inputs
Assistant
Responses are generated using AI and may contain mistakes.